**Kalmoe & Mason - How to Measure Public Support for Political Violence 

*Replication File for 2019 YouGov Analysis

use "/Users/npkalmoe/Dropbox/Research/A Publishing/A Mason-Kalmoe Extreme Partisanship/Facebook Studies/YouGov Wave 1/YG 2019 Wave 1 - weight.dta", clear

set more off

svyset [pw=weight_w3]

*Partisanship
gen partisan=pid7
recode partisan 1 2 3 5 6 7=1 4 8=0 else=.

*In-Party Violence
gen inviol=umd139
replace inviol=(inviol-1)/4

*Expressive Responding
gen sincere=umd143
recode sincere 1=0 2=.25 3=.5 4=.75 5=1 else=.

svy: tab sincere if inviol>0 & partisan==1 

**Figure 2 created with manual inputs of results into Word chart data

tab inviol if inviol>0 & partisan==1
